<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="./CSS/reset.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>京东轮播图</title>
    <style>
        /* .img-box{
            width: 590px;
            margin: 200px auto;
            position: relative;
        }
        .img{
            position: absolute;
        }
        .btn-list{
            position: absolute;
            top: 450px;
            left: 10px;
        }
        .btn{
            height: 10px;
            width: 10px;
            background-color: #fff;
            float: left;
            margin-left: 5px;
            border-radius: 50%;
        }
        .btn:hover{
            box-shadow: 0px 0px 10px rgba(255, 255, 255, 1);
            height: 12px;
            width: 12px;
        }
        clearfix::after,clearfix::before{
            content: "";
            display: table;
            clear: both;
        } */
        /* 设置图片容器  */
        .imgs-box{
            width: 590px;
            height: 470px;
            margin: 100px auto;
            /* 开启相对定位,使btn-list可以相对于它进行定位 */
            position: relative;
        }
        /* 设置图片 */
        .img{
            position: absolute;
        }
        .img:nth-of-type(4){
            z-index: 1;
        }
        .btn-list{
            position: absolute;
            /* 使用bottom 定位元素要设置高度 原因未知 */
            bottom: 20px;
            left: 40px;
            z-index:2;
        }
        .btn{
            height: 10px;
            width: 10px;
            border-radius: 50%;
            background-color:rgba(255,255,255,.3);
            border: 2px solid transparent ;
            /* 将背景颜色只设置到内容区，边框和内边距不再有背景颜色 */
            background-clip: content-box;
            /* 设置元素向左浮动 */
            float: left;
            margin:0px 2px;
        }
        .active,.btn:hover{
            background-color: #fff;
            border: 2px solid rgba(255,255,255,.3);
        }
    </style>
</head>

<body>
    <!-- <div class="img-box clearfix">
        <div class="img">
            <a href="">
                <img src="./imgs/轮播图1.jpg" alt="">
            </a>
        </div>
        <div class="img">
            <a href="">
                <img src="./imgs/轮播图2.jpg" alt="">
            </a>
        </div>
        <div class="img">
            <a href="">
                <img src="./imgs/轮播图3.jpg" alt="">
            </a>
        </div>
        <div class="img">
            <a href="">
                <img src="./imgs/轮播图4.jpg" alt="">
            </a>
        </div>
        <div class="img">
            <a href="">
                <img src="./imgs/轮播图5.jpg" alt="">
            </a>
        </div>
        <div class="img">
            <a href="">
                <img src="./imgs/轮播图6.jpg" alt="">
            </a>
        </div>
        <div class="img">
            <a href="">
                <img src="./imgs/轮播图7.jpg" alt="">
            </a>
        </div>
        <div class="img">
            <a href="">
                <img src="./imgs/轮播图8.jpg" alt="">
            </a>
        </div>
        <div class="btn-list">
            <div class="btn"></div>
            <div class="btn"></div>
            <div class="btn"></div>
            <div class="btn"></div>
            <div class="btn"></div>
            <div class="btn"></div>
            <div class="btn"></div>
            <div class="btn"></div>
        </div>
    </div> -->
    <div class="imgs-box">
        <div class="img-list">
           <div class="img"> <a href="#"><img src="./imgs/轮播图1.jpg" alt=""></a></div>
           <div class="img"> <a href="#"><img src="./imgs/轮播图2.jpg" alt=""></a></div>
           <div class="img"> <a href="#"><img src="./imgs/轮播图3.jpg" alt=""></a></div>
           <div class="img"> <a href="#"><img src="./imgs/轮播图4.jpg" alt=""></a></div>
           <div class="img"> <a href="#"><img src="./imgs/轮播图5.jpg" alt=""></a></div>
           <div class="img"> <a href="#"><img src="./imgs/轮播图6.jpg" alt=""></a></div>
           <div class="img"> <a href="#"><img src="./imgs/轮播图7.jpg" alt=""></a></div>
           <div class="img"> <a href="#"><img src="./imgs/轮播图8.jpg" alt=""></a></div>
        </div>
        <div class="btn-list">
            <a href="#"><div class="btn active"></div></a>
            <a href="#"><div class="btn"></div></a>
            <a href="#"><div class="btn"></div></a>
            <a href="#"><div class="btn"></div></a>
            <a href="#"><div class="btn"></div></a>
            <a href="#"><div class="btn"></div></a>
            <a href="#"><div class="btn"></div></a>
            <a href="#"><div class="btn"></div></a>          
    </div> 
    </div>
</body>
</html>